package com.huang.app.antstore.common.http;


import com.huang.app.antstore.common.utils.Constants;

import java.io.Serializable;

/**
 * Created by huangxiaoyu on 2016/9/26.
 */

public class BaseModel<T> implements Serializable {
    public String id;
    public String msg;
    public String order_no;
    public String order_sn;
    public T datas;
    public T result;
    public T objlist;//获取用户购物车使用

    public boolean success() {
        return id.equals(Constants.RESULT_OK);
    }

    @Override
    public String toString() {
        return "BaseModel{" +
                "id='" + id + '\'' +
                ", msg='" + msg + '\'' +
                ", order_no='" + order_no + '\'' +
                ", datas=" + datas +
                ", result=" + result +
                ", objlist=" + objlist +
                '}';
    }
}
